<nav class="is-fixed bg-white" id="navbar">
    <div id="navbarbox">
        <div class="bg-black">
            <div class="navbar content"><a href="/"><span class="nav-logo">博客</span></a>
                <div class="navbar-3">
                    <a href="/" class="nav-item n-home">首页</a>
                    <div>
                    <#if sessionUser??>
                        <a href="/article/send" class="nav-item n-message">发布</a>
                        <a href="/member/index" class="nav-item n-message">个人中心</a>
                        <span class="nav-item n-message">欢迎:${sessionUser.name!}</span>
                    <#else>
                        <a href="/register" class="nav-item n-message">注册</a>
                        <a href="#" class="nav-item n-message" onclick="login()">登录</a>
                    </#if>

                    </div>
                </div>
            </div>
        </div>

    </div>
</nav><!----><!---->

<div id="mobile_device"></div>
<div class="modal" style="display: none;" id="login">
    <div class="modal-content modal-normal"><a href="#" onclick="location.reload()" class="modal-close-btn"><i
            class="iconfont icon-quxiao"></i></a>
        <div class="modal-body">
            <div>
                <div class="signbox-left"><!---->
                    <div class="view-signin-1">
                        <div class="signin-box">
                            <form action="/login" method="post">
                                <div class="input-group"><input type="text" placeholder="用户名" name="phone">
                                    <div class="error_text"></div>
                                </div>
                                <div class="input-group"><input type="password" placeholder="密码" name="password">
                                    <div class="error_text"></div>
                                </div>
                                <div class="input-group">
                                    <button type="submit" class="default-btn">登陆</button>
                                </div>
                                <div class="tip-group2 text-t4-1">还没有账号?
                                    <span class="sign-tip2 link" onclick="location.href = '/register'">立即注册?
                                        <i class="iconfont icon-arrowrightcircle"></i>
                                    </span>
                                </div>
                            </form>
                        </div>
                    </div><!----><!----></div>
            </div>
        </div>
    </div>
</div>

<script>
    function login() {
        $("#login").show();
    }
</script>